home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
Patches
/
FoundationUserPatch.pkg
/
FoundationUserPatch.post_install
< prev
next >
Wrap
Text File
|
1994-12-12
|
675b
|
28 lines
#!/bin/csh -f
# FoundationUserPatch.post_install
echo ""
echo -n " Checking localtime file ... "
set zonedir = /private/etc/zoneinfo
set timefile = $zonedir/localtime
if ( ! -f $timefile ) then
echo "$timefile does not exist."
exit 1
endif
echo "OK."
/bin/test -h $timefile
if ( $status ) then
echo -n " Changing localtime file ... "
set inode = `/bin/ls -i $timefile | /bin/awk '{print $1}'` || exit 1
/bin/rm -f $timefile || exit 1
set link = `/bin/ls -i1 $zonedir | /bin/grep $inode | /bin/awk '{print $2}'` || exit 1
chdir $zonedir; /bin/ln -s $link ${timefile:t} || exit 1
echo "OK."
endif
echo " ... done."
exit 0